idea+spring-boot+devtools热部署 - 邵锦杰的博客 - CSDN博客

创建时间:2017/7/24 15:57
来源:http://blog.csdn.net/jsshaojinjie/article/details/64125458


2017-03-20 14:45 2954人阅读 评论(1) 收藏 举报
.
分类:
spring-boot
.
maven dependencies增加
  1. <dependency>  
  2.     <groupId>org.springframework.boot</groupId>  
  3.     <artifactId>spring-boot-devtools</artifactId>  
  4.     <optional>true</optional>  
  5. </dependency>  

project增加
  1. <build>  
  2.     <plugins>  
  3.         <plugin>  
  4.             <groupId>org.springframework.boot</groupId>  
  5.             <artifactId>spring-boot-maven-plugin</artifactId>  
  6.             <configuration>  
  7.             <!--fork :  如果没有该项配置,肯呢个devtools不会起作用,即应用不会restart -->  
  8.             <span style="white-space:pre">  </span><fork>true</fork>  
  9.             </configuration>  
  10.         </plugin>  
  11.     </plugins>  
  12. </build>  

idea设置


ctrl+shift+alt+/



重启项目即可。
.
1
0